<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>ajax</title>
	</head>

	<body>
		<script src="../public/js/common/jquery-1.12.4.min.js" type="text/javascript"></script>
		<script>
			$.ajax({
				type: 'post',
				url: "http://192.168.2.37:3000/api/test?id=11",   
				dataType: 'jsonp', 
				data: {
					
				},
				success: function(data) {
					console.log(typeof(data), '=', data)
					data = JSON.stringify(data)
					$('body').append(data)
				}, error: function(error) {
					console.log(error)
					error = JSON.stringify(error)
					$('body').append(error)
				}
			});
		</script>
	</body>

</html>